package org.NooLab.structures.randomgraph;

public class GuidObject {

	String[] primaryGuid   = new String[]{""};
	String secondaryGuid   = "";
	String ternaryGuid     = "";

	long[] primaryIndex    = new long[]{1};
	long secondaryIndex    = -1L;
	long ternaryIndex      = -1L;

	
	// ------------------------------------------------------------------------
	public GuidObject(){
	}
	// ------------------------------------------------------------------------

	public void setPrimaryGuid( String guidStrs) {
		if (primaryGuid.length==0){
			primaryGuid = new String[1] ;
		}
		primaryGuid[0] = guidStrs;
	}
	public void setPrimaryGuid(String[] guidStrs) {
		if (guidStrs==null){
			primaryGuid = new String[0] ;
		}else{
			// primaryGuid = guidStrs;
			primaryGuid = new String[guidStrs.length] ;
			System.arraycopy( guidStrs, 0, primaryGuid , 0, guidStrs.length);
		}
	}

	public String[] getPrimaryGuid() {
		return primaryGuid;
	}

	public void setPrimaryIndex(long[] indexes) {
		if (indexes==null){
			primaryIndex = new long[0] ;
		}else{
			primaryIndex = new long[indexes.length] ;
			System.arraycopy( indexes, 0, primaryIndex , 0, primaryIndex.length);
		}
	}
	public void setPrimaryIndex( long index) {
		if (primaryIndex.length==0){
			primaryIndex = new long[1] ;
		}
		primaryIndex[0] = index;
	}

	
	public long[] getPrimaryIndex() {
		return primaryIndex;
	}





	public String getSecondaryGuid() {
		return secondaryGuid;
	}


	public void setSecondaryGuid(String secondaryGuid) {
		this.secondaryGuid = secondaryGuid;
	}


	public String getTernaryGuid() {
		return ternaryGuid;
	}


	public void setTernaryGuid(String ternaryGuid) {
		this.ternaryGuid = ternaryGuid;
	}




	public long getSecondaryIndex() {
		return secondaryIndex;
	}


	public void setSecondaryIndex(int secondaryIndex) {
		this.secondaryIndex = secondaryIndex;
	}


	public long getTernaryIndex() {
		return ternaryIndex;
	}


	public void setTernaryIndex(int ternaryIndex) {
		this.ternaryIndex = ternaryIndex;
	}
}
